"""Testapi URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/2.1/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
#coding=utf-8
#author__ = "jack"
from django.contrib import admin
from django.urls import path,include,re_path
#from rest_framework import routers
#import webuser

urlpatterns = [
#如果在urls.py中使用到正则匹配路径（^$）的时候，就需要使用re_path,而不能使用path，不然页面会显示404错误，如果未用到正则，那么使用path即可
    path('admin/', admin.site.urls),
    path('api/', include('webuser.urls')),
   #re_path(r'^api/$', include('webuser.urls')),
]
